package managedbeans;

import java.io.Serializable;

import javax.faces.event.ActionEvent;

import org.eclnt.editor.annotations.CCGenClass;
import org.eclnt.jsfserver.elements.util.Trigger;
import org.eclnt.jsfserver.managedbean.DefaultDispatchedBean;
import org.eclnt.jsfserver.managedbean.IDispatcher;

@CCGenClass(expressionBase = "#{d.MainUI}")
public class MainUI extends DefaultDispatchedBean implements Serializable {
	// ------------------------------------------------------------------------
	// constructors & initialization
	// ------------------------------------------------------------------------

	public MainUI(IDispatcher dispatcher) {
		super(dispatcher);
	}

	// ------------------------------------------------------------------------
	protected Trigger browserTrigger = new Trigger();
	protected String url = "https://docs.google.com/document/d/1NG94rvJHH7XbnTdBPWigboJtP4_OZUP41xdCqTSglXQ/edit";

	public Trigger getBrowserTrigger() {
		return browserTrigger;
	}

	public String getUrl() {
		return url;
	}

	public void onHelp(ActionEvent event) {
		browserTrigger.trigger();
	}
}
